/*
 * @Author: 晟松
 * @Date: 2021-12-17 17:05:33
 * @LastEditors: 晟松
 * @LastEditTime: 2022-02-26 20:10:33
 * @FilePath: \volunteer-vue3-admin\src\router\sidebarRoutes\schoolSidebarRoutes.js
 * @Description:
 */
export const schoolSidebarRoutes = [
    {
        parentId: -1,
        id: 1,
        name: "学生管理",
        alias: "学生管理",
        url: "",
        routeName: "",
        path: "",
        menu: "",
        type: 0, // type==0 表示是一个菜单
        icon: "menu",
        sort: 1,
        iframe: 1,
        children: [
            {
                id: 11,
                name: "所有学生",
                alias: "所有学生",
                routeName: "AllStudent",
                path: "/AllStudent",
                url: "AllStudent",
                type: 1,
                icon: "avatar",
            },

            {
                id: 12,
                name: "学生审核",
                alias: "学生审核",
                routeName: "StudentReview",
                path: "/StudentReview",
                url: "StudentReview",
                type: 1,
                icon: "finished",
            },

            {
                id: 13,
                name: "学生志愿服务记录",
                alias: "学生志愿服务记录",
                routeName: "StudentVol",
                path: "/StudentVol",
                url: "StudentVol",
                type: 1,
                icon: "list",
            },
        ],
    },
    {
        parentId: -1,
        id: 100,
        name: "辅导员管理",
        alias: "辅导员管理",
        url: "",
        routeName: "",
        path: "",
        menu: "",
        type: 0, // type==0 表示是一个菜单
        icon: "menu",
        sort: 1,
        iframe: 1,
        // 只允许校级管理员存在这个目录
        meta: {
            allow: "schoolAdmin",
        },
        children: [
            {
                id: 101,
                name: "辅导员管理",
                alias: "辅导员管理",
                routeName: "AllCollege",
                path: "/AllCollege",
                url: "AllCollege",
                type: 1,
                icon: "avatar",
            },
            {
                id: 102,
                name: "辅导员审核",
                alias: "辅导员审核",
                routeName: "CollegeReview",
                path: "/collegeReview",
                url: "CollegeReview",
                type: 1,
                icon: "finished",
            },
        ],
    },
    {
        parentId: -1,
        id: 1000,
        name: "大型志愿服务管理",
        alias: "大型志愿服务管理",
        url: "",
        routeName: "",
        path: "",
        menu: "",
        type: 0, // type==0 表示是一个菜单
        icon: "menu",
        sort: 1,
        iframe: 1,
        children: [
            {
                id: 1001,
                name: "我的记录",
                alias: "我的记录",
                routeName: "MyGroupVol",
                path: "/MyGroupVol",
                url: "MyGroupVol",
                type: 1,
                icon: "list",
            },
            // {
            //     id: 1002,
            //     name: "公开大型志愿服务",
            //     alias: "公开大型志愿服务",
            //     routeName: "PublicGroupVol",
            //     path: "/PublicGroupVol",
            //     url: "PublicGroupVol",
            //     type: 1,
            //     icon: "list",
            // },
            // {
            //     id: 1003,
            //     name: "私有大型志愿服务",
            //     alias: "私有大型志愿服务",
            //     routeName: "RequestGroupVol",
            //     path: "/RequestGroupVol",
            //     url: "RequestGroupVol",
            //     type: 1,
            //     icon: "list",
            // },
        ],
    },
    {
        id: 10000,
        name: "所有社区",
        alias: "所有社区", // 别名
        path: "/allCommunity",
        url: "AllCommunity", // 这里的url实际上等于路由里面的name属性
        routeName: "AllCommunity",
        type: 1, // type==1 表示是一个菜单里面的菜单项
        icon: "Menu",
        children: [],
    },
    {
        id: 100000,
        name: "所有学校",
        alias: "所有学校",
        path: "/allSchool",
        url: "AllSchool",
        routeName: "AllSchool",
        type: 1,
        icon: "Menu",
        children: [],
    },
    {
        id: 1000000,
        name: "消息",
        alias: "消息",
        routeName: "Message",
        path: "/Message",
        url: "Message",
        type: 1,
        icon: "message",
        children: [],
    },
];
